local rs = redis.call('setnx', KEYS[1], ARGV[1])
if (rs == 1 or rs == 'ok') then
    return redis.call('pexpire', KEYS[1], ARGV[2])
    else  return 0
end